home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / applications / 3930 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.4 KB  |  65 lines

  1. Path: rzstud1.rz.uni-karlsruhe.de!uhay
  2. From: uhay@rzstud1.rz.uni-karlsruhe.de (David Luebbren)
  3. Newsgroups: comp.sys.amiga.applications
  4. Subject: Re: gnuemacs 18.59 and LaTeX Mode
  5. Date: 29 Mar 1996 02:23:35 GMT
  6. Organization: University of Karlsruhe, Germany
  7. Message-ID: <4jfhj7$f5t@nz12.rz.uni-karlsruhe.de>
  8. References: <19960325.7651158.11A78@amy.s.bawue.de>
  9. NNTP-Posting-Host: rzstud1.rz.uni-karlsruhe.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. NNTP-Posting-User: uhay
  14. X-Newsreader: TIN [version 1.2 PL2]
  15.  
  16. mma@amy.s.bawue.de wrote:
  17. : Hi,
  18.  
  19. : I am using the amiga port 1.29DG of gnuemacs 18.59,
  20. : and have a Problem in the LaTeX Mode.
  21.  
  22. : ESC-{ is a keystroke for inserting two braces and putting
  23. : the cursor between them. But ESC-{ only gives K{ on my window.
  24. : Using C-h l i can see ESC C-x C-^ K { 
  25.  
  26. : So what must i to put into my .emacs file to correct this
  27. : mistake ?.
  28.  
  29. : (Of course ESC-{ doesnt function too)
  30.  
  31. It looks like the numeric keypad keys have been redefined in your .emacs file.
  32. The problem is that you can either redefine all the keypad  keys or none. I
  33. for example have redefined these keys to move around in emacs (e.g. HOME, END).
  34. The drawback however is that I for example can't use the curly braces in the 
  35. 'search-forward' command as Emacs prefixes all the keypad keys with C-x C-^ K
  36. when they are redefined. Anyway, the workaround is either not to redefine the
  37. keypad keys or use ALT-SHIFT-U Umlaut. 
  38.  
  39.  
  40. Excerpt from "amiga.doc":
  41.  
  42. o Keypad keys are prefixed with C-x C-^ K (so 0 generates C-x C-^ K 0).
  43. Normally, C-x C-^ K is a do-nothing operation, so the keypad keys just
  44. insert the usual character. If you want to redefine the keypad keys, you
  45. must do the following:
  46.  
  47.   (global-set-key "\C-x\C-^K" (make-sparse-keymap))
  48.   (global-set-key "\C-x\C-^K0" '<function for key 0>)
  49.   (global-set-key "\C-x\C-^K1" '<function for key 0>)
  50.   ...
  51.  
  52. Once you have redefined one key, you must define all of them (as C-x C-^ K
  53. is no longer a do-nothing command). If you still want a keypad to insert
  54. its usual character, you can use (for +)
  55.  
  56.   (global-set-key "\C-x\C-^K+" 'self-insert-command)
  57.  
  58. Even with this, the numeric keypad will not work with the incremental
  59. search function. The only way past that is to disable the C-x C-^ K
  60. prefix, with the following code:
  61.  
  62.   (setq amiga-remap-numeric-keypad nil)
  63.  
  64. (and you will then not be able to redefine the keypad keys).
  65.